//
//  HJNetworkManager.swift
//  HJWeibo
//
//  Created by huangjiong on 16/2/4.
//  Copyright © 2016年 huangjiong. All rights reserved.
//

import UIKit
import AFNetworking

class HJNetworkManager: AFHTTPSessionManager {
    
    static let m:HJNetworkManager = {
        
        let baseUrl = NSURL(string: "https://api.weibo.com/")
        let tempM = HJNetworkManager(baseURL: baseUrl)
        tempM.responseSerializer.acceptableContentTypes = NSSet(objects: "application/json", "text/json", "text/javascript", "text/plain") as? Set<String>
        return tempM
    }()
    
    class func sharedManager() -> HJNetworkManager {
        
        return m
    }

}
